#pragma once;

#include "MyGraphic.h"
#include "MyFunction.h"
#include "MyRectangle.h"

class MyRectangle;

class MyShape
{
private:
	MyGraphic* _myGraphic;

protected:
	MyGraphic* getMyGraphic() {
		return _myGraphic;
	}
	
public:
	MyShape() {

	}
	virtual void Draw() = 0;
	virtual string ToString() = 0;
	static MyShape *Parse(string s);

	void setMyGraphic(MyGraphic* myGraphic) {
		_myGraphic = myGraphic;
	}
};

